/*
 * MIT License
 *
 * Copyright (c) 2025 Mark·虎
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

package com.hsxxherp.key.support.model.entity;

public class PageRequest<T> {
    /**
     * 当前页码，默认值为 1
     */
    private int pageNum = 1;
    /**
     * 每页显示的记录数，默认值为 10
     */
    private int pageSize = 10;
    /**
     * 查询条件对象
     */
    private T condition;
    /**
     * 高级查询条件
     */
    private AdvancedQuery advancedQuery;
    /**
     * 是否为树表查询的标识
     */
    private boolean isTreeQuery;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public T getCondition() {
        return condition;
    }

    public void setCondition(T condition) {
        this.condition = condition;
    }

    public AdvancedQuery getAdvancedQuery() {
        return advancedQuery;
    }

    public void setAdvancedQuery(AdvancedQuery advancedQuery) {
        this.advancedQuery = advancedQuery;
    }

    public boolean isTreeQuery() {
        return isTreeQuery;
    }

    public void setTreeQuery(boolean treeQuery) {
        isTreeQuery = treeQuery;
    }
}